﻿IndexServiceOSX

This sample project will build only on OS X. It shows how to build a Lasso tag module.

This project will register one tag:

indexservice_searchFor(<string term>, -in=<array of sources>)

This tag will search for <term> in the sources specified by the -in parameter. It will return an array of all hits for the given term.

The indexservice_searchFor tag will utilize the Find By Content system and can only search in directories which have been indexed (accomplished in the Get Info window of a directory). Each source must be a directory. The return value will be an array of pairs where each ->first member is the path to the hit document and each ->second is the score for the hit document which indicates how closely it matched term. Scores are decimals.